﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace HYSoft.IDAL
{
    /// <summary>
    /// 接口层usr2monitor
    /// </summary>
    public interface Iusr2monitor
    {
        #region  成员方法
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        bool Exists(int user_index, int index, string m_area_name, string m_area_id, string addr, string type, string level, int population, int count, string contact_name1, string contact_mobile1, string contact_name2, string contact_mobile2, string contact_name3, string contact_mobile3, string upunit1, string upcontact_name1, string upcontact_mobile1, string upunit2, string upcontact_name2, string upcontact_mobile2, int intvalue1, int intvalue2, int intvalue3, string charvalue1, string charvalue2, string charvalue3, string coordinates_x, string coordinates_y);
        /// <summary>
        /// 增加一条数据
        /// </summary>
        bool Add(HYSoft.Model.usr2monitor model);
        /// <summary>
        /// 更新一条数据
        /// </summary>
        bool Update(HYSoft.Model.usr2monitor model);
        /// <summary>
        /// 删除一条数据
        /// </summary>
        bool Delete(int user_index, int index, string m_area_name, string m_area_id, string addr, string type, string level, int population, int count, string contact_name1, string contact_mobile1, string contact_name2, string contact_mobile2, string contact_name3, string contact_mobile3, string upunit1, string upcontact_name1, string upcontact_mobile1, string upunit2, string upcontact_name2, string upcontact_mobile2, int intvalue1, int intvalue2, int intvalue3, string charvalue1, string charvalue2, string charvalue3, string coordinates_x, string coordinates_y);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        HYSoft.Model.usr2monitor GetModel(int user_index, int index, string m_area_name, string m_area_id, string addr, string type, string level, int population, int count, string contact_name1, string contact_mobile1, string contact_name2, string contact_mobile2, string contact_name3, string contact_mobile3, string upunit1, string upcontact_name1, string upcontact_mobile1, string upunit2, string upcontact_name2, string upcontact_mobile2, int intvalue1, int intvalue2, int intvalue3, string charvalue1, string charvalue2, string charvalue3, string coordinates_x, string coordinates_y);
        HYSoft.Model.usr2monitor DataRowToModel(DataRow row);
        /// <summary>
        /// 获得数据列表
        /// </summary>
        DataSet GetList(string strWhere);
        /// <summary>
        /// 获得前几行数据
        /// </summary>
        DataSet GetList(int Top, string strWhere, string filedOrder);
        int GetRecordCount(string strWhere);
        DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        /// <summary>
        /// 根据分页获得数据列表
        /// </summary>
        //DataSet GetList(int PageSize,int PageIndex,string strWhere);
        #endregion  成员方法
        #region  MethodEx

        #endregion  MethodEx
    }
}